package com.zr.daoimpl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.CarIDDao;
import com.zr.model.Ccarinfo;
@Repository("ciddim")
public class CarIDDaoImpl<T> extends BaseDaoImpl<T> implements CarIDDao<T>{

	@Override
	public List<Ccarinfo> findCnumber() {
		String hql="from Ccarinfo as cc where cc.ccstate.cstateid=5001001";
		
		Query query=this.getCurrentSession().createQuery(hql);
		
		List<Ccarinfo> li=query.list();
		
		return li;
	}

}
